package com.example.workbench.common.emus;

import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
public enum AuthenticationError implements BaseEnum {
    LOGIN_ROLE_ERROR(1001,"对不起，您没有对应的角色,拒绝访问"),
    LOGON_PERMISSION_MISSING_ERROR(1002,"对不起，您没有对应的权限,拒绝访问"),
    LOGIN_PERMISSION_ERROR(1003,"对不起，您的权限有误，拒绝访问"),
    LOGIN_OUT_ERROR(1004,"用户登出失败"),
    LOGIN_ACCOUNT_NOT_EXIST_ERROR(1005,"账户不存在"),
    LOGIN_PASSWORD_ERROR(1006,"密码输入错误，请重新输入"),
    LOGIN_AUTHORIZATION_INVALID_ERROR(1007,"登录凭证已失效，请重新登录"),
    LOGIN_UNAUTHORIZED_ACCESS_ERROR(1008,"非法访问，请重新登录"),
    PASSWORD_NOT_SAME_ERROR(1009,"两次密码不相同"),
    PASSWORD_SAME_WITH_OLD_ERROR(1010,"密码与原始密码相同"),
    ROLE_UNKNOWN_ERROR(1011,"未知的用户类型");

    private Integer code;

    private String desc;
    @Override
    public Integer getNumber() {
        return null;
    }

    @Override
    public String getName() {
        return null;
    }

    @Override
    public String getSimplePinYin() {
        return null;
    }

    @Override
    public String getFullPinYin() {
        return null;
    }
}

